/* color palette from <https://github.com/vuejs/theme> */
:root {
  --primary-color: #00A6FB;
  --primary-dark: #0085c9;
  --secondary-color: #1E3D59;
  --accent-color: #05C7F2;
  --success-color: #34D399;
  --background-color: #F8FAFF;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-primary: #1E3D59;
  --text-secondary: #64748B;
  --border-radius: 16px;
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #00A6FB, #05C7F2);
  --gradient-secondary: linear-gradient(135deg, #1E3D59, #2A4A6B);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  /* 新增民族风纹理 */
  --texture-overlay: linear-gradient(
          45deg,
          transparent 20%,
          rgba(168, 67, 0, 0.05) 25%,
          transparent 30%
  );
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
          radial-gradient(circle at 10% 20%, rgba(0, 166, 251, 0.05) 0%, transparent 20%),
          radial-gradient(circle at 90% 80%, rgba(5, 199, 242, 0.05) 0%, transparent 20%);
  background-attachment: fixed;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);

}

.navbar {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: var(--gradient-primary);
  padding: 0.8rem 2rem;
  color: white;
  box-shadow: var(--navbar-shadow);
}

.nav-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  margin-right: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  justify-content: center;
}



.nav-links a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-links i {
  font-size: 1.2rem;
  color: white;
}

#logout {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 1rem;
}

#logout:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .nav-items {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  #logout {
    margin-left: 0;
  }

  .brand {
    margin-right: 0;
    text-align: center;
  }
}

.auth-form {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(0, 166, 251, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
  border-color: var(--primary-color);
  background: white;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 166, 251, 0.1);
}

.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 166, 251, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 251, 0.4);
}

.switch-form {
  text-align: center;
  margin-top: 1rem;
}

.translate-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
}

.translate-box {
  height: 200px;
  padding: 1.5rem;
  border: 2px solid rgba(0, 166, 251, 0.1);
  border-radius: var(--border-radius);
  resize: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.translate-box:focus {
  border-color: var(--primary-color);
  background: white;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 166, 251, 0.1);
}

.translate-controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.translate-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 3rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 166, 251, 0.3);
  position: relative;
  overflow: hidden;
}

.translate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.translate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 251, 0.4);
}

.translate-btn:hover::before {
  transform: translateX(100%);
}

.loading {
  display: none;
  text-align: center;
  padding: 1rem;
  color: var(--primary-color);
}

.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
  color: var(--primary-color);
  font-size: 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.terminology-card {
  max-height: none;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.terms-table-container {
  margin: 2rem auto;
  max-width: 1000px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.terms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

.terms-table th {
  background: var(--gradient-primary);
  color: white;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  text-align: left;
  font-size: 1.1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.terms-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 166, 251, 0.1);
  font-size: 1rem;
  transition: var(--transition);
}

.terms-table tr {
  background: white;
  transition: var(--transition);
}

.terms-table tr:hover {
  background: rgba(0, 166, 251, 0.05);
}

.terms-table tr:hover td {
  color: var(--primary-color);
}

/* 添加分类标签样式 */
.term-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  background: rgba(0, 166, 251, 0.1);
  color: var(--primary-color);
}

/* 添加表格容器的滚动样式 */
.table-scroll-container {
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.table-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.table-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.table-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* 响应式优化 */
@media (max-width: 768px) {
  #terminology-page .search-box {
    margin: 1rem;
  }

  #terminology-page .search-box input {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

  .terms-table th,
  .terms-table td {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .term-category {
    display: block;
    margin: 0.5rem 0 0 0;
    text-align: center;
  }
}

/* 添加空状态样式 */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-results i {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.no-results p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.no-results span {
  font-size: 0.9rem;
  opacity: 0.7;
}

.search-box {
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  padding-left: 3rem;
  border: 2px solid rgba(0, 166, 251, 0.1);
  border-radius: 16px;
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

.search-box::before {
  content: '\f002';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.1rem;
}

.search-box input:focus {
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 166, 251, 0.1);
  outline: none;
}

@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .terminology-card {
    max-height: 400px;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card .icon-box {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.feature-card:hover .icon-box {
  transform: scale(1.1);
}

.subpage {
  position: relative;
  margin-top: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-content a {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #3498db;
}

/* 搜索记录页面样式优化 */
.history-list {
  list-style: none;
  margin: 2rem 0;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--card-shadow);
}

.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: transparent;
}

.history-list::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

.history-list li {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(0, 166, 251, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  position: relative;
}

.history-list li:hover {
  background: rgba(0, 166, 251, 0.05);
}

.history-list li .history-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-list li .history-text {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.history-list li .history-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.history-list li .history-time {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-list li .history-time i {
  font-size: 0.9rem;
  opacity: 0.7;
}

.history-list li .history-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition);
}

.history-list li:hover .history-actions {
  opacity: 1;
}

.history-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.history-action-btn:hover {
  background: rgba(0, 166, 251, 0.1);
  color: var(--primary-color);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.history-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.history-header h3 i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.history-stats {
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: rgba(0, 166, 251, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#clearHistory {
  margin-top: 1.5rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

#clearHistory:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 166, 251, 0.2);
}

/* 空记录状态样式 */
.empty-history {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-history i {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.empty-history h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-history p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .history-list li {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .history-list li .history-meta {
    width: 100%;
    justify-content: space-between;
  }

  .history-list li .history-actions {
    opacity: 1;
    margin-top: 0.5rem;
  }

  .history-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .history-stats {
    align-self: flex-start;
  }
}

/* 新增导航栏样式 */
.nav-items {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: #f8f9fa;
  color: #3498db;
}

/* 新增医学知识页面样式 */
.medical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.disease-card {
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.disease-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.disease-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.disease-card:hover img {
  transform: scale(1.05);
}

/* 添加图片说明样式 */
.disease-card figcaption {
  padding: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.disease-info {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
}

.disease-info h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.disease-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* 调整反馈表单间距 */
#feedbackForm {
  margin-top: 40px; /* 新增：为返回按钮留出空间 */
}

/* style.css 新增图标样式 */
.nav-links a {
  flex-direction: column;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a i {
  margin-right: 8px;
  font-size: 1.1rem;
  width: 24px;
  transition: color 0.3s ease;
}

/* 调整现有悬停效果 */
.nav-links a:hover {
  background: #f8f9fa;
  color: #3498db;
}

.nav-links a:hover i {
  color: #3498db;
}

/* 新增轮播图样式 */
.carousel-container {
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
}

.carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
  rgba(0,0,0,0.1) 0%,
  rgba(0,0,0,0) 5%,
  rgba(0,0,0,0) 95%,
  rgba(0,0,0,0.1) 100%
  );
  pointer-events: none;
}

.carousel-track {
  display: flex;
  animation: scroll 25s linear infinite;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-300%); }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-container {
    margin: 1rem auto;
  }

  .carousel-slide img {
    height: 280px;
  }

  .dashboard-grid,
  .medical-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .search-box input {
    padding: 1rem 1.25rem;
    padding-left: 2.75rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* 医学知识搜索框样式 */
#medical-page .search-box {
  margin: 0 0 1rem;
  position: relative;
}

#medical-page .search-box input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#medical-page .search-box input:focus {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

/* 反馈提示语样式 */
.feedback-prompt {
  color: #718096;
  margin: 1rem 0 2rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.feedback-prompt p {
  margin: 0;
  line-height: 1.6;
}

/* 调整反馈表单间距 */
#feedbackForm .form-group {
  margin-bottom: 1.8rem;
}

#feedbackForm .form-label {
  font-size: 0.95rem;
  color: #4a5568;
}

/* 翻译页面样式 */
.translation-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.language-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.source-lang,
.target-lang {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lang-select {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(0, 166, 251, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  min-width: 150px;
}

.lang-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 166, 251, 0.1);
}

.swap-lang-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  margin-top: 1.5rem;
}

.swap-lang-btn:hover {
  background: rgba(0, 166, 251, 0.1);
  transform: scale(1.1);
}

.translate-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.translate-box-container {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.translate-box {
  width: 100%;
  min-height: 200px;
  max-height: 400px;
  padding: 1.5rem;
  border: 2px solid rgba(0, 166, 251, 0.1);
  border-radius: var(--border-radius);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  background: transparent;
  color: var(--text-primary);
  transition: var(--transition);
}

.translate-box:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 166, 251, 0.1);
}

.box-tools {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.tool-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.tool-btn:hover {
  background: rgba(0, 166, 251, 0.1);
  color: var(--primary-color);
}

.translate-controls {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.translate-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 3rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 166, 251, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.translate-btn i {
  font-size: 1.2rem;
}

.translate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 251, 0.4);
}

.translation-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 166, 251, 0.1);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  background: rgba(0, 166, 251, 0.1);
  padding: 1rem;
  border-radius: 12px;
  transition: var(--transition);
}

.feature-item:hover i {
  transform: translateY(-2px);
  background: var(--gradient-primary);
  color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .translate-area {
    grid-template-columns: 1fr;
  }

  .language-selector {
    flex-direction: column;
    gap: 1rem;
  }

  .swap-lang-btn {
    transform: rotate(90deg);
    margin: 0;
  }

  .translation-features {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .feature-item {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
}

/* 辅助导航页面样式 */
.navigation-card {
  max-width: 1000px;
  margin: 0 auto;
}

.navigation-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-section {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.search-section .search-box {
  flex: 1;
  margin: 0;
  display: flex;
  gap: 1rem;
  position: relative;
}

.search-section .search-box::before {
  content: '\f002';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.1rem;
  z-index: 1;
}

.search-section .search-box input {
  flex: 1;
  padding: 1rem 1.5rem 1rem 45px;
  font-size: 1rem;
  border: 2px solid rgba(0, 166, 251, 0.1);
  border-radius: 12px;
  transition: var(--transition);
  width: 100%;
}

.language-select-wrapper {
  min-width: 120px;
}

.search-section .lang-select {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(0, 166, 251, 0.1);
  border-radius: 12px;
  background: white;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-section .search-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.search-section .search-btn i {
  font-size: 1.1rem;
}

/* 快速问题标签 */
.quick-questions {
  margin-top: 1rem;
}

.quick-questions h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.question-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.question-tag {
  padding: 0.6rem 1.2rem;
  background: rgba(0, 166, 251, 0.1);
  border: none;
  border-radius: 20px;
  color: var(--primary-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.question-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* 答案区域 */
.answer-section {
  margin-top: 1rem;
}

.answer-box {
  background: white;
  border-radius: var(--border-radius);
  min-height: 200px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.empty-state h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* 功能特点 */
.navigation-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 166, 251, 0.1);
}

.navigation-features .feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.navigation-features .feature-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  background: rgba(0, 166, 251, 0.1);
  padding: 1rem;
  border-radius: 12px;
  transition: var(--transition);
}

.navigation-features .feature-item:hover i {
  transform: translateY(-2px);
  background: var(--gradient-primary);
  color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-section {
    flex-direction: column;
  }

  .search-section .search-box {
    flex-direction: column;
  }

  .language-select-wrapper {
    width: 100%;
  }

  .search-section .search-btn {
    width: 100%;
    justify-content: center;
  }

  .question-tags {
    gap: 0.5rem;
  }

  .question-tag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .navigation-features {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .navigation-features .feature-item {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }
}

/* 傈僳语特色医疗页面样式 */
.lisu-medicine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.lisu-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 166, 251, 0.1);
}

.lisu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.lisu-card-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lisu-card-header i {
  font-size: 1.5rem;
}

.lisu-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.lisu-card-content {
  padding: 1.5rem;
}

.lisu-card-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.herb-list, .expert-list {
  display: grid;
  gap: 1.5rem;
}

.herb-item, .expert-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  border-radius: 12px;
  transition: var(--transition);
}

.herb-item:hover, .expert-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
}

.herb-item img, .expert-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.herb-info, .expert-info {
  flex: 1;
}

.herb-info h4, .expert-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.treatment-list {
  list-style: none;
  padding: 0;
}

.treatment-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.8rem;
  border-radius: 8px;
  transition: var(--transition);
}

.treatment-list li:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
}

.treatment-list i {
  color: var(--primary-color);
}

.culture-content {
  text-align: center;
}

.culture-content img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .lisu-medicine-grid {
    grid-template-columns: 1fr;
  }

  .herb-item, .expert-item {
    flex-direction: column;
    text-align: center;
  }

  .herb-item img, .expert-item img {
    width: 100%;
    height: 160px;
  }
}

/* PDF卡片样式 */
.pdf-card {
  cursor: pointer;
}

.pdf-preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 12px;
  transition: var(--transition);
}

.pdf-preview:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
}

.pdf-icon {
  font-size: 2.5rem;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.pdf-info {
  flex: 1;
}

.pdf-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.view-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.view-pdf i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.pdf-preview:hover .view-pdf i {
  transform: translateX(3px);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  margin: 2vh auto;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.pdf-container {
  width: 100%;
  height: calc(100% - 4rem);
  overflow: hidden;
  border-radius: 8px;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .pdf-preview {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .pdf-icon {
    margin: 0 auto;
  }

  .modal-content {
    width: 95%;
    height: 95vh;
    margin: 2.5vh auto;
    padding: 1rem;
  }
}

.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 166, 251, 0.1);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 166, 251, 0.2);
}

.back-btn:hover {
  background-color: var(--primary-dark);
  transform: translateX(-3px);
  box-shadow: 0 4px 8px rgba(0, 166, 251, 0.3);
}

.back-btn i {
  font-size: 1.1rem;
}

/* 调整标题样式以适应新的布局 */
.page-header .page-title {
  margin: 0;
  flex-grow: 1;
  text-align: center;
  padding-right: 120px; /* 为了平衡返回按钮的宽度，使标题真正居中 */
}
.small-text {
  display: block;
  font-size: 0.8em;
  color: #666;
  line-height: 1.4;
  margin-top: 5px;
  margin-bottom: 5px;
}

/* 针对登录和注册表单中的 small-text 样式 */
.auth-form .small-text {
  margin-bottom: 10px;
}

/* 针对卡片内的 small-text 样式 */
.card .small-text {
  margin-top: 8px;
}

/* 针对导航栏下的 small-text 样式 */
.navbar .small-text {
  margin-left: 10px;
}

/* 疾病详情页样式 */
#disease-detail-page .card {
  max-width: 800px;
  margin: 0 auto;
}

.disease-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.detail-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.detail-info h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

@media (max-width: 768px) {
  .disease-content {
    grid-template-columns: 1fr;
  }

  .detail-image {
    height: 200px;
  }
}


